import request from '@/utils/request.js'

export async function getSwipeData () {
  var res = await request.get('/banner/list')
  return res.data.data
}

export async function getSearchData (params) {
  var res = await request.get('http://121.89.205.189/api/pro/categorybrandlist', {
    params
  })
  return res.data.data
}

export async function getHotword () {
  var res = await request.get('http://121.89.205.189/api/pro/hotword')
  return res.data.data
}

export async function getProData (params) {
  var res = await request.get('/pro/list', { params })
  // console.log(res.data.data)
  return res.data.data
}

export async function getDetailData (proid) {
  var res = await request.get('/pro/detail/' + proid)
  console.log(res)
  return res.data.data
}

export async function getKillData (data) {
  var res = await request.get('http://121.89.205.189/api/pro/seckilllist')
  console.log(res)
  return res.data.data
}
